package com.fymxy.question_bank_management.service.serviceImpl;

import com.fymxy.question_bank_management.mapper.KeywordMapper;
import com.fymxy.question_bank_management.pojo.Keyword;
import com.fymxy.question_bank_management.service.KeywordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KeywordServiceImpl implements KeywordService{
    @Autowired
    KeywordMapper keywordMapper;

    @Override
    public List<String> getAllKeywordContent() {
        return keywordMapper.getAllKeywordContent();
    }

    @Override
    public int deleteKeywordByProNo(Integer id) {
        return keywordMapper.deleteKeywordByProNo(id);
    }

    @Override
    public int insert(Keyword keywordRecord){
        return keywordMapper.insert(keywordRecord);
    }
}